package com.train.mgr.modules.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.train.mgr.modules.biz.dto.request.CourseQueryReqDTO;
import com.train.mgr.modules.biz.dto.response.CourseRespListDTO;
import com.train.mgr.modules.biz.dto.response.TraineeStuRespDTO;
import com.train.mgr.modules.biz.entity.Course;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程表 Mapper 接口
 * </p>
 *
 * @author cxg
 * @date 2025-09-30
 */
public interface CourseMapper extends BaseMapper<Course> {

    Page<CourseRespListDTO> selectList(Page<CourseRespListDTO> page, @Param("params") CourseQueryReqDTO params);

    Course selectCourceByCourceCode(@Param("courseCode") String courseCode ,@Param("customerId") Long customerId);

    TraineeStuRespDTO getStuCourseCount(@Param("userId") Long userId);

    List<Course> getCourseList();
}
